package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.ServiceDetailBo;
import com.yingsheng.bi.hks.dto.servicedetail.ServiceDetailAddReq;
import com.yingsheng.bi.hks.dto.servicedetail.ServiceDetailModReq;
import com.yingsheng.bi.hks.repository.dao.po.ServiceDetail;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ServiceDetailMgmtMappings {

    ServiceDetailMgmtMappings INSTANCE = Mappers.getMapper(ServiceDetailMgmtMappings.class);

    ServiceDetail addReq2po(ServiceDetailAddReq req);

    ServiceDetail addReq2po(ServiceDetailModReq req);

    List<ServiceDetailBo> serviceDetailList2boList(List<ServiceDetail> serviceDetailList);
}
